/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * Author: zhaosj
 * Date: 2010-8-24 下午01:57:49
 */
package com.service;

/**
 * @author Administrator
 * 
 */

public class HelloService {
	/** */
	/**
	 * 不带参数的函数
	 * 
	 * @return 返回Hello字符串
	 */
	public String sayHello() {
		return "Hello";
	}

	/** */
	/**
	 * 带参数的函数
	 * 
	 * @param name
	 *            名称
	 * @return 返回加上名称的欢迎词
	 */
	public String sayHelloToPerson(String name) {
		if (name == null || name.equals("")) {
			name = "nobody";
		}
		return "Hello " + name;
	}
}
